<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="/static/css/style.css">
<link type="text/css" rel="stylesheet" href="/static/css/box.css">
<script src="/static/js/admin/jquery.js" language="javascript" type="text/javascript"></script>
<title>选油 - 在线选油助手</title>
<style>
	#mark,#operationBox,.nd_tip,#template,.operationBox2{display: none;}
	.mt_10 {
	    margin-top: 10px;
	}
</style>
<script>
var jq=jQuery.noConflict();
function preview(oper)
{
	if (oper < 10)
	{
		bdhtml=window.document.body.innerHTML;
		sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域  
		eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域  
		prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18);
		prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
		window.document.body.innerHTML=prnhtml;
		window.print();
		window.document.body.innerHTML=bdhtml;
		} else {
		window.print();
	}
}

function showDiv(){
	document.getElementById('operationBox').innerHTML=document.getElementById('template').innerHTML;
	document.getElementById('mark').style.display='block';
	document.getElementById('operationBox').style.display='block';
}

function closeDiv(){
	jq("#mark").css("z-index","9996");
	document.getElementById('mark').style.display='none';
	document.getElementById('operationBox').style.display='none';
	jq(".operationBox2").hide();
	jq("#operationBox .nd_tip").hide();
}
function ckmail(){
	var yx = document.getElementById('mail').value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if(filter.test(yx)){
		jq("#mark").css("z-index","99999");
		// document.getElementById('showpic').style.visibility='visible';
		return true;
	}
	document.getElementById('nd_tip').innerHTML = "请输入正确的邮箱地址!";
	document.getElementById('nd_tip').style.display='block';
	return false;
}
function sendok(){
	closeDiv();
	jq(".operationBox2 .susP").html("发送成功");
	document.getElementById('mark').style.display='block';
	jq(".operationBox2").show();
	window.setTimeout(close_notice, 2000);
}
function senderror(){
	closeDiv();
	jq(".operationBox2 .susP").html("发送失败，请检查邮箱是否正确");
	document.getElementById('mark').style.display='block';
	jq(".operationBox2").show();
	window.setTimeout(hidden_notice, 3000);
}
function close_notice(){
	closeDiv();
}
function hidden_notice(){
	document.getElementById('cg102984').innerHTML="";
}
</script>
</head>

<body>
<%include file="www/header.html"%>  
<!--选择内容-->
<div class="con reportBg">
	<div class="nav">当前位置：<a href="/">首页</a> »&nbsp; <span>选油报告</span></div>

	<div class="w cansu">
		<!--startprint1-->
		<p class="ppd"><span class="f20">选油报告</span></p>
		<div class="tsWarp">
            <p><%if $type==2%>能满足您要求的油品太多了！按照性价比等综合排序，本系统推荐以下5种产品供您参考:<%else%>有以下油品供您参考选用：<%/if%></p>
        </div>
        <ul class="rList">
        	<%foreach from=$info.result item=item key=key%>
        		<li><span><b class="fl"><%$key+1%></b><label class="fl"><%$item%></label></span></li>
			<%/foreach%>
        </ul> 
		<!-- 
		您提交的选油参数：<br />
		<%include file="www/table.html"%>
		<%if $info.type==1%>
			<%include file="www/table_1.html"%>
		<%elseif $info.type==2%>
			<%include file="www/table_2.html"%>
		<%elseif $info.type==3%>
			<%include file="www/table_3.html"%>
		<%elseif $info.type==4%>
			<%include file="www/table_4.html"%>
		<%elseif $info.type==5%>
			<%include file="www/table_5.html"%>
		<%elseif $info.type==6%>
			<%include file="www/table_6.html"%>
		<%/if%> 
	    <p class="chuxhu">提示：本报告由工业维修网旗下选油助手提供，网址：http://xuanyou.cooljun.cn/</p>
	    -->
		<!--endprint1-->
		<div class="sd border clear">
            <input type="button" class="btn1 fl " style="margin-right:34px;" value="发邮箱" onclick="showDiv()"  />
            <input type="button" class="btn1 fl " style="margin-right:34px;" value="打印" onclick="preview(1)" />
            <a class="btnA fl " style="margin-right:34px;" href="/first.html"  >重新审核</a>
            <a class="btn2 P20px fl" href="/yijian.html">反馈意见，获取50元代金券</a>
        </div>
        <iframe name="progress" id="progress" width="0" height="0"></iframe>
	</div>
	<%include file="www/footer.html"%>
	<div id="popDiv" class="mydiv" style="display:none;"><a class="aclose" href="javascript:closeDiv()">关闭</a>
		<div style="clear:both"></div>
		<div id="cg102983"></div>
	</div>

	<!--弹窗-->
	<div id="mark"></div>
	<div class="operationBox" id="operationBox">
	</div>
	<div id="template">
		<h5>发邮箱 <span id="close" onclick="close_notice()"></span></h5>
	    <form class="loginboxF pTb30" name="form1" id="form1" method="post" action="" target="progress"  onsubmit="return ckmail()">
	        <fieldset>
	        	<input type="hidden" name="id" value="<%$smarty.get.id%>" />
	            <input type="text" id="mail" value="" autocomplete="off" placeholder="请您输入正确邮箱" class="inputbox"  name="mail" />
	            <p class="cuowuTt nd_tip mt_10" id="nd_tip"><samp></samp>请您输入正确邮箱</p>
	        </fieldset>
	        <input type="submit" name="submit"  value="发 送" class="boxBtn">
	    </form>
	</div>
	<div class="operationBox2" >
	    <h5><span id="close2" onclick="close_notice()"></span></h5>
	    <p class="susP">发送成功 !<p>
	</div>
</div>
</body>
</html>
